package com.xsd.parser.module;

import cn.afterturn.easypoi.excel.annotation.Excel;
import java.io.Serializable;

/**
 * <p>
 * import组件
 * </p>
 *
 * @author kehaofei
 * @since 2019-12-09
 */
public class ImportModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * schemaLocation
     */
    @Excel(name = "schemaLocation", orderNum = "1",isImportField = "true")
    private String schemaLocation;
    /**
     * 命名空间
     */
    @Excel(name = "namespace", orderNum = "2",isImportField = "true")
    private String namespace;
    /**
     * appinfo:externalImportIndicator
     * ture/false
     */
    @Excel(name = "appinfo:externalImportIndicator", orderNum = "3",isImportField = "true")
    private String externalImportIndicator;
    /**
     * 英文定义
     */
    @Excel(name = "英文定义",orderNum = "4",isImportField = "true")
    private String importDefEN;
    /**
     * 中文定义
     */
    @Excel(name = "中文定义",orderNum = "5",isImportField = "true")
    private String importDefCN;

    public String getSchemaLocation() {
        if(schemaLocation==null || schemaLocation.isEmpty()){
            return "";
        }
        return schemaLocation;
    }

    public void setSchemaLocation(String schemaLocation) {
        this.schemaLocation = schemaLocation;
    }

    public String getNamespace() {
        if(namespace==null || namespace.isEmpty()){
            return "";
        }
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public String getExternalImportIndicator() {
        if(externalImportIndicator==null || externalImportIndicator.isEmpty()){
            return "";
        }
        return externalImportIndicator;
    }

    public void setExternalImportIndicator(String externalImportIndicator) {
        this.externalImportIndicator = externalImportIndicator;
    }

    public String getImportDefEN() {
        if(importDefCN==null || importDefCN.isEmpty()){
            return "";
        }
        return importDefEN;
    }

    public void setImportDefEN(String importDefEN) {
        this.importDefEN = importDefEN;
    }

    public String getImportDefCN() {
        if(importDefCN==null || importDefCN.isEmpty()){
            return "";
        }
        return importDefCN;
    }

    public void setImportDefCN(String importDefCN) {
        this.importDefCN = importDefCN;
    }

    @Override
    public String toString() {
        return "ImportModel{" +
                "schemaLocation='" + schemaLocation + '\'' +
                ", namespace='" + namespace + '\'' +
                ", externalImportIndicator='" + externalImportIndicator + '\'' +
                ", importDefEN='" + importDefEN + '\'' +
                ", importDefCN='" + importDefCN + '\'' +
                '}';
    }
}
